<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>注册</title>
    {% load static %}
    <link rel="stylesheet" media="screen" href="{% static '/css/login.css' %}">
</head>
<body>
<!-- particles.js container -->
<div id="particles-js" style="display: flex;align-items: center;justify-content: center">
    <canvas class="particles-js-canvas-el" style="width: 100%; height: 100%;" width="1423" height="426"></canvas>
</div>
<div class="login-page">
    <div class="login-content_reg">
        <form action="" method="post" novalidate="novalidate">
            {% csrf_token %}
            <div class="login-tit">注册</div>
            <div class="login-input">
                {{ form_obj.username }}<span style="color: red">{{ form_obj.username.errors.0 }}</span>
            </div>
            <div class="login-input">
                {{ form_obj.password }}<span style="color: red">{{ form_obj.password.errors.0 }}</span>
            </div>
            <div class="login-input">
                {{ form_obj.re_password }}<span style="color: red">{{ form_obj.re_password.errors.0 }}</span>
            </div>
            <div class="login-input">
                {{ form_obj.mobile }}<span style="color: red">{{ form_obj.mobile.errors.0 }}</span>
            </div>
            <div class="login-input">
                {{ form_obj.name }}<span style="color: red">{{ form_obj.name.errors.0 }}</span>
            </div>
            <div class="login-input">
                {{ form_obj.department }} <span style="color: red">{{ form_obj.department.errors.0 }}</span>
            </div>
            <div class="login-btn">
                <div class="login-btn-left">
                    <button>注册</button>
                </div>
            </div>
        </form>
    </div>
</div>


<!-- scripts -->
<script src="{% static '/js/particles.js' %}"></script>
<script src="{% static '/js/app.js' %}"></script>
<script>
    function changeImg() {
        let pic = document.getElementById('picture');
        console.log(pic.src);
        if (pic.getAttribute("src", 2) == "{% static '/img/check.png' %}") {
            pic.src = "img/checked.png"
        } else {
            pic.src = "img/check.png"
        }
    }
</script>
</body>
</body>
</html>